# coding:utf-8
# 曾山
# 时间 2022/5/1 21:17
#通过执行命令 创建数据库的表

from flask_migrate import Migrate,MigrateCommand
from flask_script import Manager

from Shopping import create_app
from comment.models import db


app = create_app('develop')
manager=Manager(app)
Migrate(app,db)

manager.add_command('shopping_db',MigrateCommand)

if __name__ == '__main__':
    manager.run()